﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="InternshipManagement.Helpers" %>
<ul class="submenu">
    <% if (((List<int>)Session["UserPrivileges"]).Contains((int)UserPrivileges.ListStudents))
       { %>
    <li <%= ViewBag.CompanyOp == 1 ? @"class=""selectedop""" : "" %>>
        <%: Html.ActionLink("List Companies", "CompanyList")%>
    </li>
    <%} if (((List<int>)Session["UserPrivileges"]).Contains((int)UserPrivileges.CreateStudent))
       { %>
    <li <%= ViewBag.CompanyOp == 2 ? @"class=""selectedop""" : "" %>>
        <%: Html.ActionLink("Add New Company", "CompanyCreate")%>
    </li>
    <% } if (ViewBag.CompanyOp == 3)
       {%>
    <li class="selectedop">
        Edit Company
    </li>
    <% }%>
</ul>

